//
//  WDModifyPasswordRequest.m
//  wd-serviceapp
//
//  Created by Bin Tang on 2024/8/22.
//

#import "WDModifyPasswordRequest.h"

@interface WDModifyPasswordRequest ()
@property (nonatomic, strong) WDModifyPasswordReqModel *reqModel;
@end

@implementation WDModifyPasswordRequest

- (instancetype)initWithModel:(WDModifyPasswordReqModel *)model {
    if (self = [super init]) {
        self.reqModel = model;
    }
    return self;
}

- (NSString *)requestUrl {
    return kAPP_USER_MODIFY_PASSWORD;
}

- (TYZRequestSerializerType)requestSerializerType {
    return TYZRequestSerializerTypeHTTP;
}

- (TYZRequestMethod)requestMethod {
    return TYZRequestMethodPOST;
}

- (id)requestArgument {
    NSDictionary *params = @{
        @"newPassword": objectNull(self.reqModel.newsPassword),
        @"newPassword1": objectNull(self.reqModel.newsPassword1),
        @"oldPassword": objectNull(self.reqModel.oldPassword),
        @"userId": self.reqModel.userId
    };
    return params;
}

//- (Class)rspClass {
//    return [ZHCustomUserInfoModel class];
//}

@end
